package com.zhbroy.groovy;

import com.zhbroy.test.groovy.IFoo;

class Foo implements IFoo{

	def  gpsAmount = 10;
	def  invalidAmount = 5;
//	def  ALARM_FFCONDITION =false;
	/**接口实现
	*/
	public Object where(Object foo)
    { 
     
       return 3+2;
    }
	 
	/**测试用 
	*/
  static void main(args) {
	  println("Hello world."+"zhb");
	  Foo foo = new Foo();
	  Object ret = foo.where(10);
	  String msg = "zhb汉字"+ret;
	  foo.howto();
	}
	/**条件判断的实现
	*/
  public boolean howto(){
		println("gpsAmount=${gpsAmount},invalidAmount=${invalidAmount}");
		ALARM_CONDITION;
  }
}